package com.leyou.common.vo;


import lombok.Data;

import java.util.List;

@Data
public class PageResult<T> {

    private List<T> items; // 当前页数据
    private Long total;    // 总记录数
    private Integer totalPage; // 总页数

    public PageResult() {
    }

    public PageResult(List<T> items, Long total) {
        this.items = items;
        this.total = total;
    }

    public PageResult(List<T> items, Long total, Integer totalPage) {
        this.items = items;
        this.total = total;
        this.totalPage = totalPage;
    }
}
